package com.zziq.cloudpicturebank.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.zziq.cloudpicturebank.model.dto.categorytag.CategoryTagAddRequest;
import com.zziq.cloudpicturebank.model.dto.categorytag.CategoryTagQueryRequest;
import com.zziq.cloudpicturebank.model.dto.categorytag.CategoryTagUpdateRequest;
import com.zziq.cloudpicturebank.model.entity.CategoryTag;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zziq.cloudpicturebank.model.entity.Space;
import com.zziq.cloudpicturebank.model.entity.User;

/**
* @author Mr·张
* @description 针对表【category_tag(分类标签表)】的数据库操作Service
* @createDate 2025-03-08 22:43:29
*/
public interface CategoryTagService extends IService<CategoryTag> {

    /**
     * 添加分类标签
     * @param categoryTagAddRequest
     * @param loginUser
     * @return
     */
    long addCategoryTag(CategoryTagAddRequest categoryTagAddRequest, User loginUser);

    /**
     * 删除分类标签
     * @param categoryTag
     */
    void deleteCategoryTagById(CategoryTag categoryTag);

    /**
     * 更新分类标签
     * @param categoryTagUpdateRequest
     */
    void updateCategoryTag(CategoryTagUpdateRequest categoryTagUpdateRequest);

    /**
     * 获取查询对象
     * @param categoryTagQueryRequest
     * @return
     */
    QueryWrapper<CategoryTag> getQueryWrapper(CategoryTagQueryRequest categoryTagQueryRequest);
}
